package cn.edu.scau.cmi.zhangweiming.composite.consistent;

import java.util.ArrayList;
import java.util.List;


public class Team extends Organization{
	private List<Organization> childList = new ArrayList<>();
	
	public Team(String name) {
        super(name);
    }
	public String getname() {
		return super.getname();
	}
	public String info() {
		return "Team:"+super.getname();
	}
	public Organization getParent() {
		return this.getParent();
	}
	public void addChild(Organization child) {
		this.childList.add(child);
	}
	public void deleteChild(Organization child) {
		this.childList.remove(child);
	}	
	public List<Organization> getChildren(){
		return this.childList;
	}
}
